<div class="form">
  <form  action="scraper"  method="get" >
    <p>
      <label for="object_type">对象</label>
      <select id="object_type" name="object_type">
        <option value="0">请选择...</option>
        <option value="p">单个商品</option>
        <option value="c">一类商品</option>
      </select>
    </p>
    <p>
      <label for="brand_id">品牌</label>
      <%=  select_tag("brand_id",
        options_for_select(Brand.find(:all,:order => 'sort_order').collect {|b| [ b.name, b.id ]}),
        {:include_blank => true }) %>
    </p>

    <p>
      <label for="category_id">类别</label>
      <select id="category_id" name="category_id">
        <%=  options_for_select categories_options %>
      </select>
    </p>

    <p>
      <label for="site_url">网址</label>
      <input id="site_url" name="site[url]"  size="40"></input>
    </p>

    <p>
      <label for="site_encoding">编码</label>
      <select id="site_encoding" name="site[encoding]">
        <option value="GB2312">GB2312</option>
        <option value="UTF-8">UTF-8</option>
      </select>
    </p>

    <!--p>
      <label for="site_cname">类别名称</label>
      <input id="site_cname" name="site[cname]" size="80"></input>
    </p-->

    <!--p>
      <label for="site_cname_filter">过滤正则</label>
      <input id="site_cname_filter" name="site[cname_filter]" size=20"></input>
    </p-->

    <p>
      <label for="site_name">商品名称</label>
      <input id="site_name" name="site[name]" size="80"></input>
    </p>

    <p>
      <label for="site_name_filter">名称过滤正则</label>
      <input id="site_name_filter" name="site[name_filter]" size="20"></input>
    </p>

    <p>
      <label for="site_model">商品型号</label>
      <input id="site_model" name="site[model]" size="80"></input>
    </p>

    <p>
      <label for="site_model_filter">过滤正则</label>
      <input id="site_model_filter" name="site[model_filter]" size="20"></input>
    </p>


    <p>
      <label for="site_image">图片</label>
      <input id="site_image" name="site[image]" size="80"></input>
    </p>

    <p>
      <label for="site_desc1">描述1</label>
      <input id="site_desc1" name="site[desc1]" size="80"></input>
    </p>

    <p>
      <label for="site_desc2">描述2</label>
      <input id="site_desc2" name="site[desc2]" size="80"></input>
    </p>


    <p>
      <label for="site_desc3">技术参数</label>
      <input id="site_desc3" name="site[desc3]" size="80"></input>
    </p>


    <p>
      <label for="site_desc_filter">过滤正则1</label>
      <input id="site_desc_filter" name="site[desc_filter]" size="20"></input>
      替换内容
      <input id="site_desc_replace" name="site[desc_replace]" size="20"></input>
    </p>

    <p>
      <label for="site_desc_filter1">过滤正则2</label>
      <input id="site_desc_filter1" name="site[desc_filter1]" size="20"></input>
      替换内容
      <input id="site_desc_replace1" name="site[desc_replace1]" size="20"></input>
    </p>

    <p>
      <label for="site_product_table">商品列表</label>
      <input id="site_product_table" name="site[product_table]" size="80"></input>
    </p>

    <p>
      <label for="site_horv">列表方向</label>
      <select id="site_horv" name="site[horv]">
        <option value="0">请选择...</option>
        <option value="h">横向</option>
        <option value="v">竖向</option>
      </select>
    </p>

    <p>
      <label for="site_product_table_start">列表开始</label>
      <input id="site_product_table_start" name="site[product_table_start]" size="10"></input>
    </p>

    <p>
      <label for="site_start">开始值</label>
      <input id="site_start" name="site[start]"></input>
    </p>

    <p>
      <label for="site_end">结束值</label>
      <input id="site_end" name="site[end]"></input>
    </p>

    <input id="submit" name="submit" type="submit" value="Good luck" />

  </form>
</div>